.class final Lcom/greystripe/sdk/p;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/greystripe/sdk/ag;


# instance fields
.field final synthetic a:Lcom/greystripe/sdk/c;


# direct methods
.method private constructor <init>(Lcom/greystripe/sdk/c;)V
    .locals 0

    iput-object p1, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/greystripe/sdk/c;B)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/greystripe/sdk/p;-><init>(Lcom/greystripe/sdk/c;)V

    return-void
.end method


# virtual methods
.method public final a()V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->f(Lcom/greystripe/sdk/c;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string v0, "AdModel#onFetchSucceeded"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/c;Z)Z

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->g(Lcom/greystripe/sdk/c;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->h(Lcom/greystripe/sdk/c;)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->i(Lcom/greystripe/sdk/c;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->h(Lcom/greystripe/sdk/c;)V

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->j(Lcom/greystripe/sdk/c;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "ondisplaywascalled"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->k(Lcom/greystripe/sdk/c;)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->j(Lcom/greystripe/sdk/c;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->l(Lcom/greystripe/sdk/c;)V

    goto :goto_0
.end method

.method public final a(Lcom/greystripe/sdk/GSAdErrorCode;)V
    .locals 3

    const/4 v2, 0x0

    sget-object v0, Lcom/greystripe/sdk/GSAdErrorCode;->INVALID_APPLICATION_IDENTIFIER:Lcom/greystripe/sdk/GSAdErrorCode;

    if-ne p1, v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "onFetchFailed: "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->e(Ljava/lang/String;[Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0, v2}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/c;Z)Z

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->c(Lcom/greystripe/sdk/c;)Z

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->d(Lcom/greystripe/sdk/c;)Z

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->e(Lcom/greystripe/sdk/c;)V

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-virtual {v0, p1}, Lcom/greystripe/sdk/c;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    return-void

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "onFetchFailed: "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method

.method public final b()V
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->k(Lcom/greystripe/sdk/c;)V

    return-void
.end method

.method public final c()V
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-virtual {v0}, Lcom/greystripe/sdk/c;->a()V

    return-void
.end method

.method public final d()V
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-static {v0}, Lcom/greystripe/sdk/c;->e(Lcom/greystripe/sdk/c;)V

    iget-object v0, p0, Lcom/greystripe/sdk/p;->a:Lcom/greystripe/sdk/c;

    invoke-virtual {v0}, Lcom/greystripe/sdk/c;->b()V

    return-void
.end method
